// NetworkManager.h: interface for the CNetworkManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NETWORKMANAGER_H__DB710A18_7ADF_407F_B752_9E82C0C657BA__INCLUDED_)
#define AFX_NETWORKMANAGER_H__DB710A18_7ADF_407F_B752_9E82C0C657BA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CUPSMonitorDoc;
class CClientSocket;

class CNetworkManager  
{
public:
	CUPSMonitorDoc* m_pDoc;
	CClientSocket*  m_pSoket;
public:
	int parsePackage(const void *lpBuf, int nBufLen);
	int sendTCPpeer(const void *lpBuf, int nBufLen, LPCTSTR lpszHostAddress, UINT nHostPort);
	int sendUDPpeer(const void *lpBuf, int nBufLen, LPCTSTR lpszHostAddress, UINT nHostPort);
	int sendUDPbroadcast(const void *lpBuf, int nBufLen,LPCTSTR lpszHostAddress, UINT nHostPort);
	CNetworkManager(CUPSMonitorDoc* pDoc,UINT nHostPort);
	virtual ~CNetworkManager();

};

#endif // !defined(AFX_NETWORKMANAGER_H__DB710A18_7ADF_407F_B752_9E82C0C657BA__INCLUDED_)
